package Day1;

import java.util.Arrays;

public class ArrayCopy {
    public static void main(String[] args) {
        int [] a1={1,2,3,4,5,6,7,8};
        int [] a2=new int[20];
        System.arraycopy(a1,3,a2,3,a1.length-1);
        System.out.println(Arrays.toString(a2));

    }
}
